#source /home/work_nfs11/code/xlgeng/environment/miniconda/etc/profile.d/conda.sh
source /mnt/sfs/asr/.bashrc
#conda activate gxl_base


test_data_dir=/mnt/sfs/asr/test_data/test_sets_format_3000
dir="/mnt/sfs/asr/code/osum_xlgeng/examples/wenetspeech/whisper/exp/epoch_34_LLMinstruct_cosyvoice1_10Wtts_1WenTTS_2Khqtts_1KenS2S_3Ks2s_5Ws2t"
ckpt_name="step_17499.pt"

data_type="raw" # "shard_full_data"
lang=zh  # en zh
prompt_file=conf/prompt_config.yaml

# 具体需要推理哪些内容， asr+X
test_sets_list = [
    "public_test/roobo_100",  # 对齐模型
    "caption_0107_esc50","caption_0107_vocalsound","caption_aslp_record", # caption
    "emotion", "public_test/MELD_test", "public_test/MER23_test", # emotion
    "style", # style
    "gender", "public_test/kaggle_gender", "public_test/aishell1_gender", # gender, aishell1_gender 7K条，太多了，而且没有推理必要
    "age", "public_test/kaggle_age",  # age
    "chat", "aslp_chat_test", "public_test/AirBench_speech", # chat用推，airbench不同推理
    "dialect_test_new_add_2025_3_5", "punctuation_test_add_2025_3_5" # data_type="shard_full_data"
    "VocalSound_ourclass",
    # asr
]
# 具体需要推理哪些内容 end
# 具体需要推理哪些内容，  only X
test_sets_list_only_X = [
    "caption_0107_esc50","caption_0107_vocalsound","caption_aslp_record", # caption
    "emotion", "public_test/MELD_test", "public_test/MER23_test", # emotion
    "style", # style
    "gender", "public_test/kaggle_gender", "public_test/aishell1_gender", # gender, aishell1_gender 7K条，太多了，而且没有推理必要
    "age", "public_test/kaggle_age",  # age
    "chat", "aslp_chat_test", "public_test/AirBench_speech", # chat用推，airbench不同推理
    "speechtag_test_esc50-allclass",
    # asr
]


# # -------------------format asr+X ----------------------------
# test_sets="public_test/roobo_100 public_test/aishell1_gender"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=0
# my_named_nohup special_${gpu_id}_${ckpt_name} bash gxl_decode/decode_common_gxl.sh  --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# # # # ----------------format  asr+X --------------------------------


# # # -------------------format for only X----------------------------
# test_sets=""
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=0
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# # # ----------------format for only X--------------------------------


# # # # -------------------instance  asr+X ----------------------------


# # # # -------------------instance asr+X ----------------------------




# # # # -------------------instance only X ----------------------------

# test_sets="caption_0107_esc50 caption_0107_vocalsound"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=0
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="caption_aslp_record emotion"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=1
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="public_test/MELD_test public_test/MER23_test"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=6
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="style gender"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=4
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="public_test/kaggle_gender age"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=6
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="public_test/kaggle_age chat aslp_chat_test"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=2
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="public_test/MER23_test aslp_chat_test"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=6
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file


# test_sets="dialect_test_new_add_2025_3_5 punctuation_test_add_2025_3_5"
# test_sets="${test_sets// /---}"
# data_type="shard_full_data"
# gpu_id=7
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file


# test_sets="speechtag_test_esc50-allclass"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=6
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# test_sets="VocalSound_ourclass"
# test_sets="${test_sets// /---}"
# data_type="raw" # "shard_full_data"
# gpu_id=6
# my_named_nohup special_${gpu_id}_${ckpt_name}_only_X bash gxl_decode/decode_common_gxl_for_only_X.sh --data_type $data_type --test_sets "$test_sets" --test_data_dir $test_data_dir --gpu_id $gpu_id --dir $dir --ckpt_name $ckpt_name --lang $lang --prompt_file $prompt_file

# # # # -------------------instance only X ----------------------------

